<?php

/**
* @current cmsadvicereply.php
* @author   caoqicheng <caoqicheng@haibao.com>
* @date 2017年2月22日 上午9:41:03
*/
namespace haibao\jiepai\model\data\user;

class CmsAdviceReply extends \haibao\jiepai\model\data\Base{

    /**
     * 后台用户回复
     */
    const REPLY_TYPE_ADMIN = 1;

    /**
     * 前台用户回复
     */
    const REPLY_TYPE_USER = 0;

    const STATUS_READ_YES = 1;

    const STATUS_READ_NO = 0;

	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;
	
    
    public $ReplyTime;
    
    public $UserID;
    
    public $Flag;

    public $Type;
    
    public $Content;
    
    public $AdviceID;
    
    public $Status;
    
    public function __construct(){
        parent::__construct();
        $this->setColumnName('Id', 'ReplyID');

        $this->dateField('ReplyTime', 'ReplyTime');
        $this->intField('UserID', 'UserID');
        $this->intField('Flag', 'Flag',true);
        $this->stringField('Content', 'Content');
        
        $this->intField('AdviceID', 'AdviceID');
        $this->intField('Type', 'Type');
        $this->intField('Status', 'Status',true);

        $this->setTableName('cms_advice_reply');
    }
}

